package com.zhengshang.api.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhengshang.common.annotation.Excel;
import com.zhengshang.common.core.domain.BaseEntity;

/**
 * APP用户提现记录对象 app_cashing_record
 * 
 * @author zhengshang
 * @date 2021-03-30
 */
public class AppCashingRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 提现记录ID */
    private Long id;

    /** 提现人ID */
//    @Excel(name = "提现人ID")
    private Long userId;

    /** 提现人用户名 */
    @Excel(name = "提现人用户名", sort = 1)
    private String userName;

    /** 提现账号 */
    @Excel(name = "提现账号", sort = 4)
    private String cashingAccount;

    /** 提现类型（1支付宝，2银行卡，3微信） */
    @Excel(name = "提现类型", readConverterExp = "1=支付宝,2=银行卡,3=微信", sort = 2)
    private String cashingType;

    /** 提现人真实姓名 */
    @Excel(name = "提现人真实姓名", sort = 5)
    private String cashingFullname;

    /** 提现金额 */
    @Excel(name = "提现金额", sort = 6)
    private BigDecimal cashingMoney;

    /** 提现手续费 */
    @Excel(name = "提现手续费", sort = 7)
    private BigDecimal cashingPoundage;

    /** 到账金额 */
    @Excel(name = "到账金额", sort = 8)
    private BigDecimal realMoney;

    /** 提现状态（1提现中，2已提现，3已驳回） */
    @Excel(name = "提现状态", readConverterExp = "1=提现中,2=已提现,3=已驳回", sort = 9)
    private String cashingState;

    /** 通过时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "通过时间", width = 20, dateFormat = "yyyy-MM-dd HH:mm:ss", defaultValue = "无", type = Excel.Type.EXPORT, sort = 10)
    private Date passTime;

    /** 驳回时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "驳回时间", width = 20, dateFormat = "yyyy-MM-dd HH:mm:ss", defaultValue = "无", type = Excel.Type.EXPORT, sort = 11)
    private Date rejectTime;

    /** 驳回理由 */
    @Excel(name = "驳回理由", defaultValue = "无", sort = 12)
    private String rejectReason;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 银行ID */
    private Long bankId;

    /** 银行名称 */
    @Excel(name = "提现银行", defaultValue = "无", sort = 3)
    private String bankName;

    public AppCashingRecord(){}

    public AppCashingRecord(Long userId){
        this.setUserId(userId);
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setCashingAccount(String cashingAccount)
    {
        this.cashingAccount = cashingAccount;
    }

    public String getCashingAccount() 
    {
        return cashingAccount;
    }
    public void setCashingType(String cashingType) 
    {
        this.cashingType = cashingType;
    }

    public String getCashingType() 
    {
        return cashingType;
    }
    public void setCashingFullname(String cashingFullname) 
    {
        this.cashingFullname = cashingFullname;
    }

    public String getCashingFullname() 
    {
        return cashingFullname;
    }
    public void setCashingMoney(BigDecimal cashingMoney) 
    {
        this.cashingMoney = cashingMoney;
    }

    public BigDecimal getCashingMoney() 
    {
        return cashingMoney;
    }
    public void setCashingState(String cashingState) 
    {
        this.cashingState = cashingState;
    }

    public BigDecimal getCashingPoundage() {
        return cashingPoundage;
    }

    public void setCashingPoundage(BigDecimal cashingPoundage) {
        this.cashingPoundage = cashingPoundage;
    }

    public BigDecimal getRealMoney() {
        return realMoney;
    }

    public void setRealMoney(BigDecimal realMoney) {
        this.realMoney = realMoney;
    }

    public String getCashingState()
    {
        return cashingState;
    }
    public void setPassTime(Date passTime) 
    {
        this.passTime = passTime;
    }

    public Date getPassTime() 
    {
        return passTime;
    }
    public void setRejectTime(Date rejectTime) 
    {
        this.rejectTime = rejectTime;
    }

    public Date getRejectTime() 
    {
        return rejectTime;
    }
    public void setRejectReason(String rejectReason) 
    {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason() 
    {
        return rejectReason;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public Long getBankId() {
        return bankId;
    }

    public void setBankId(Long bankId) {
        this.bankId = bankId;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("cashingAccount", getCashingAccount())
            .append("cashingType", getCashingType())
            .append("cashingFullname", getCashingFullname())
            .append("cashingMoney", getCashingMoney())
            .append("cashingState", getCashingState())
            .append("passTime", getPassTime())
            .append("rejectTime", getRejectTime())
            .append("rejectReason", getRejectReason())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("bankId", getBankId())
            .append("bankName", getBankName())
            .toString();
    }
}
